import Vue from 'vue'
import App from './App.vue'
import './assets/font_2a68sij4k0g/iconfont.css'
import router from './plugins/router.js'
import axios from 'axios'
Vue.prototype.$axios = axios
require('./mock/index.js')

// Vue.config.productionTip = true

new Vue({
  data:{
    bl:true,
    datalist:'',
    datalist2:'',
    // zt:1
  },
  router,
  render: h => h(App),
  mounted(){ 
      axios({//请求接口
        url: "/data/film1",
        method: "get" //获取的方法
      }).then(ok => {
        // console.log(ok.data.films,ok.data.films.actors);
        this.datalist = ok.data.films;
      });
      axios({//请求接口
        url: "/data/will",
        method: "get" //获取的方法
      }).then(ok => {
        // console.log(ok.data.films,ok.data.films.actors);
        this.datalist2= ok.data.films;
      });

  }
}).$mount('#app')
